package p4_18;

public class Line 
{
//Instance variables
	private float x;
	private float y;
	private float m;
	
//Constructors
	public Line(float x, float y, float m)
	{
		this.x = x;
		this.y = y;
		this.m = m;
	}
	
	
//Methods
	public boolean intersects(float x2,float y2, float m2)
	{
		boolean intersection;
		if (m != m2)
		{
			intersection = true;
		}
		else
		{
			intersection = false;
		}
		return intersection;
	}
	public boolean isParallel(float x2, float y2, float m2)
	{
		boolean intersection;
		if (m == m2)
		{
			intersection = true;
		}
		else
		{
			intersection = false;
		}
		return intersection;
	}
	public boolean equals(float x2, float y2, float m2)
	{
		boolean intersection;
		if (m == m2  )//&& contains same points
		{
			intersection = true;
		}
		else
		{
			intersection = false;
		}
		return intersection;
	}
	
}
